﻿using Microsoft.VisualBasic;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace LServer.Core.LFMongoDB
{
    [BsonIgnoreExtraElements]
    public class LFMongonEntityBase
    {
        /// <summary>
        /// Id
        /// </summary>
        [JsonConverter(typeof(LFObjectIdConverter))]
        public ObjectId Id;

        /// <summary>
        /// 主键
        /// </summary>
        public long LFId;

        /// <summary>
        /// 数据状态
        /// </summary>
        public DataStatus Status;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime;

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime;
    }
}
